<?php
class User_account_list_model extends BZ_Model
{
    protected $table = 'user_account_list';
    
    public function insertUserAccountList($params)
    {
        $data = array(
            'o_income'       => $params['o_income'], //打款金额
            'deduction'      => $params['deduction'], //抵扣余额
            'r_income'       => $params['r_income'], //收入金额
            'name'           => $params['name'], //打款单位
            'contact'        => $params['contact'],
            'uid'            => $this->uid,
            'n_amount_carry' => $params['n_amount_carry'],
            'n_amount_month' => $params['n_amount_month'],
            'flag'           => 1,
            'date'           => time()
        );
        return $this->db->insert($this->table, $data);
    }
}